import com.wx.day08.pojo.Employee;
import com.wx.day09.mapper.CustomerMapper;
import com.wx.day09.mapper.EmpMapper;
import com.wx.day09.mapper.OrderMapper;
import com.wx.day09.pojo.Customer;
import com.wx.day09.pojo.Order;
import com.wx.utils.SqlSessionUtils;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import org.junit.jupiter.api.Test;

import java.io.InputStream;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class Tets {
    @Test
    public void testDelete() throws Exception {
        SqlSession sqlSession = SqlSessionUtils.openSession();
        CustomerMapper mapper = sqlSession.getMapper(CustomerMapper.class);
        List<Customer> list = mapper.getOrders();
        System.out.println(list);
        sqlSession.commit();
        sqlSession.close();
    }
}
